package main.java.game.event;



import java.util.Observable;
import java.util.Observer;

import main.java.game.Card;
import main.java.game.Game;


public class Event extends Card implements Observer{

		
		/**
		 */
	private Boolean subscribed;
		
	public Event (String name, Boolean subscribed){
		super(name);
		this.setSubscribed(subscribed);
		
	}
	public void takeEffect(Game game){
		game.addEvent(this);
		if(subscribed)
			game.addObserver(this);
		
	}
	@Override
	public void update(Observable arg0, Object arg1) {
		
		
	}
	public void setSubscribed(Boolean subscribed) {
		this.subscribed = subscribed;
	}
	public Boolean getSubscribed() {
		return subscribed;
	}
	

}
